You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A completely unset DS3231 has a 2000-epoch timestamp of 0. Adding a negative offset to correct to LST puts that time at less than 0. Converting the less-than-0 timestamp to text gives an invalidly formed text string so uploads to MonitorMW will be rejected.
In cases where the clock is unfixably incorrect, the output text timestamp should be at least correctly formed so as to be uploadable, even if not correct.
The text was updated successfully, but these errors were encountered:
If the time is invalid, how about setting the default time to 2020Jan02 00:00
that way it covers all the problems with time shifting as well as default DS3231.
I would suggest using defines
#define EPOCH_TIME_20200101_SECS 1577836800
#define EPOCH_TIME_20200102_SECS 1577923200
A completely unset DS3231 has a 2000-epoch timestamp of 0. Adding a negative offset to correct to LST puts that time at less than 0. Converting the less-than-0 timestamp to text gives an invalidly formed text string so uploads to MonitorMW will be rejected.
In cases where the clock is unfixably incorrect, the output text timestamp should be at least correctly formed so as to be uploadable, even if not correct.
The text was updated successfully, but these errors were encountered: